﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Timers;
using System.Diagnostics;

namespace TestApplication
{
	public class TesterClass : TimedObjectBase
	{
		public const int RECORD_COUNT = 30000;

		public void Run()
		{
			DALEFHelper dalEF = new DALEFHelper();
			DALNormalHelper dalNormal = new DALNormalHelper();
			dalEF.Complete += new EventHandler<TimedEventArgs>(dalNormal_Progress);
			dalNormal.Complete += new EventHandler<TimedEventArgs>(dalNormal_Progress);

			dalEF.Select();
			dalNormal.Select();
			dalEF.Select();
			dalNormal.Select();
			dalEF.Select();
			dalNormal.Select();

			////dalEF.Insert();
			////dalEF.Update();
			//dalEF.Select();
			////dalEF.Delete();
			
			////dalNormal.Insert();
			////dalNormal.Update();
			//dalNormal.Select();
			////dalNormal.Delete();

		}

		private void dalNormal_Progress(object sender, TimedEventArgs e)
		{
			this.OnComplete(e);
		}

	}
}